package zuel.innovation.disley.judge.controller;

import cn.fabrice.jfinal.annotation.Param;
import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;
import com.jfinal.kit.Kv;
import zuel.innovation.disley.common.module.Judge;
import zuel.innovation.disley.homework.service.HomeworkService;
import zuel.innovation.disley.homework.service.HomeworkUserService;
import zuel.innovation.disley.judge.service.JudgeService;

public class JudgeController extends Controller {
    @Inject
    HomeworkService homeworkService;
    @Inject
    HomeworkUserService homeworkUserService;
    @Inject
    JudgeService judgeService;

    /**
     * 添加作业评价
     * @param hId 作业编号
     * @param uId 用户编号
     * @param jText 评价内容
     */
    @Param(name = "hId",required = true)
    @Param(name = "uId",required = true)
    @Param(name = "jText",required = true)
    public  void addHomeworkJudge(int hId,int uId,String jText){
        Kv cond= Kv.by("hId",hId).set("uId",uId);
        Judge judge=new Judge();
        judge.setHId(hId);
    }

}
